//封装函数实现数组去重
let arr=[3,4,4,5,5,6,6,7];
console.log(...new Set(arr))
//[3,4,5,6,7]
